<html>
<body>  
	<script language='Javascript'>  
		function transformXML(xml,xsl){  
			var domParser = new DOMParser();  
			var xmlObject = domParser.parseFromString(xml,"text/xml");  
			var xslObject = domParser.parseFromString(xsl,"text/xml");    
			var xsltProcessor = new XSLTProcessor();   
			xsltProcessor.importStylesheet(xslObject);   
			var result = xsltProcessor.transformToFragment(xmlObject,document);   
			var serializer = new XMLSerializer();  
			
			return serializer.serializeToString(result);  
		}  
	  
	</script>   
</body>
</html>